<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head></h:head> 
<body> 
	<h:form >
		<p:panelGrid columns="2" >
			
			<f:facet name="header">
				<h:outputLabel value="Cadastro Usuário " />
			</f:facet>
			
			<h:outputLabel for="nome" value="Nome: " />  
    		<p:inputText id="nome" value="#{usuarioBean.usuario.nome}" label="Nome"/>
    		
    		<h:outputLabel for="login" value="Login: " />  
    		<p:inputText id="login" value="#{usuarioBean.usuario.login}" label="Login" />
    		
    		<h:outputLabel for="senha" value="Senha: " />  
    		<p:inputText id="senha" value="#{usuarioBean.usuario.senha}" label="Senha" />
    		
    		<h:outputLabel for="permissao" value="Permissão: " />  
    		<h:selectOneMenu value="#{usuarioBean.usuario.permissao}"  id="permissao">
    			<f:selectItem itemLabel="Atendente" itemValue="Atendente"/>
    			<f:selectItem itemLabel="Gerente" itemValue="Gerente"/>
    		</h:selectOneMenu>
			
			<f:facet name="footer">  
		        <p:commandButton value="Enviar" action="#{usuarioBean.incluirUsuario}" style="position:center" />  
		    </f:facet> 
			
		</p:panelGrid>

	</h:form>
</body> 
</html>
